<template>
	<view class="content">
		<view class="tabs-wrapper">
			<u-tabs name="cate_name" :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
		</view>
		<view class="tab-content">
			<freightOrder v-if="current == 0"></freightOrder>
			<orderList v-if="current == 1"></orderList>
		</view>

	</view>
</template>

<script>
import freightOrder from '../freightOrder/index';
import orderList from '@/components/orderList/orderList.vue';

export default {
	components: { orderList, freightOrder },
	data() {
		return {
			list: [{
				cate_name: '配送接单'
			}, {
				cate_name: '收料接单'
			}],
			current: 0
		}
	},
	onLoad(option) {

	},
	methods: {
		change(index) {
			this.current = index;
		}
	}
}
</script>

<style lang="scss" scoped></style>